<template>
  <swiper :options="swiperOption">
    <swiper-slide v-for="(slide,index) in swiperSlides" :key="index">
      <img :src="slide" alt="" srcset="">
    </swiper-slide>
    <div class="swiper-pagination" slot="pagination"></div>
  </swiper>
</template>

<script>
export default {
  name: "carousel",
  props: ["swiperSlides"],
  data() {
    return {
      swiperOption: {
        autoplay: true,
        setWrapperSize: true,
        observeParents: true,
        pagination: {
          el: ".swiper-pagination"
        }
      }
    };
  }
};
</script>
<style>
img {
  width: 100%;
}
</style>
